# test.py
from alg import partition

def test_partition(test_cases):
    for s in test_cases:
        print(f"输入: {s.strip()}")
        print(f"输出: {partition(s.strip())}")
        print()

if __name__ == "__main__":
    # 从test_cases.txt文件中读取测试用例
    with open("test_cases.txt", "r") as file:
        test_cases = file.readlines()
    test_partition(test_cases)
